<template>
	<view class="box">
		<van-nav-bar title="付款失败" left-text="返回" left-arrow @click-left="onClickLeft" />
		<div class="content">
			<image src="../../../static/pay/error.png" mode=""></image>
			<view class="success-title">支付失败，请重新打开订单支付</view>
			<van-button plain hairline type="warning" @click="goBack">返回首页</van-button>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			onClickLeft() {
				history.back();
			},
			goBack() {
				uni.switchTab({
					url: "/pages/home/home"
				});
			},
		}
	}
</script>

<style>
	.box {
		height: 100vh;
		background-color: white;
	}

	.content {
		margin: 0 auto;
		position: relative;
		top: 10%;
		width: 95%;
		height: 600rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-evenly;
	}

	.content image {
		width: 250rpx;
		height: 250rpx;
	}

	.content .success-title {
		font-size: 15px;
		color: #505050;
	}
</style>